package com.gtone.usbtool.bean;

import com.gtone.usbtool.encrypt.AESUtils;

public class EncryptCode {
    private String key;
    private String value;

    public EncryptCode() {
    }

    public EncryptCode(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "EncryptCode{" +
                "key='" + AESUtils.decrypt(key, AESUtils.KEY) + '\'' +
                ", value='" + AESUtils.decrypt(value, AESUtils.KEY) + '\'' +
                '}';
    }
}
